// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import store from '@/store';
let vuexStore = require("@/store/$u.mixin.js");
Vue.mixin(vuexStore);
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
// uni.$u.config.unit = 'rpx' 
Vue.prototype.$baseUrl = function() {
<<<<<<< HEAD
	// return 'http://123.57.49.234:8182'
	return 'http://192.168.1.177:8182'
=======
	if (process.env.NODE_ENV === 'development') {
		// return 'http://192.168.0.177:8182'  //测试
		return 'http://123.57.49.234:8182' //正式
		console.log('开发环境---------------');
	} else {
		return 'http://123.57.49.234:8182' //正式
		console.log('生产环境+++++++++++++++++');
	}

	// return 'http://123.57.49.234:8182' //正式
	// return 'http://192.168.0.177:8182'  //测试

	// return 'http://123.57.49.234:8187'  //测试

>>>>>>> 846db4ba6dd0e9d1352038e33158b8c66b9904dd
	// if (this.$u.os() == 'devtools') {
	// 	return ' https://dev.readforbooks.com/rd/'
	// } else {
	// 	  return '/api'
	// }
}

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	store,
	...App
})
// 引入请求封装，将app参数传递到配置中
require('@/common/request.js')(app)
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif